﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Square2
{
    class Program
    {
        /*
         打印空心正方形
         */
        static void Main(string[] args)
        {
            int z = 6;
            for (int i = 0; i < z; i++)
            {
                for (int j = 0; j < z; j++)
                {
                    if (i==0||i==z-1||j==0||j==z-1)
                    {
                        Console.Write(" *");
                    }
                    else
                    {
                        Console.Write("  ");
                    }
                }
                Console.WriteLine();
            }
            Console.ReadKey();
        }
    }
}
